﻿// RestTrayIcon.cpp

#include <QString>
#include <QIcon>

#include "RestTrayIcon.h"

RestTrayIcon::RestTrayIcon(){
    this->restMessage = new QString("Please rest for a while.");
    this->setIcon(QIcon(QString(":/images/RestTrayIcon.png")));
}

void RestTrayIcon::showRestMessage(){
    this->showMessage(tr("休息一会吧！"),
            tr("你已经在电脑前坐了很长时间了。站起来了休息一会吧！"),
            QSystemTrayIcon::Warning
            );
}

RestTrayIcon::~RestTrayIcon(){

}
